﻿namespace GlennQuigmire.API.Application.GDtos
{
    /// <summary>
    /// 物料列表Dto
    /// </summary>
    public class MaterialListDto
    {
        /// <summary>
        /// 物料主键
        /// </summary>
        public int MaterialId { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string ProductSpecification { get; set; }
        /// <summary>
        /// 库存单位
        /// </summary>
        public int StockUnit { get; set; }
        /// <summary>
        /// 单位用量
        /// </summary>  
        public int UnitMach { get; set; }
        /// <summary>
        /// 父级物料
        /// </summary>
        public int? ParentId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateId { get; set; }
        /// <summary>
        /// 创建人名
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public int? UpdateId { get; set; }
        /// <summary>
        /// 修改人名
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }


        /// <summary>
        /// 父级名称
        /// </summary>
        public string? ParentName { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 子级
        /// </summary>
        public List<MaterialListDto> Children { get; set; }


    }
}
